package com.office.personalOffice.contacts.service.impl;


import com.office.personalOffice.contacts.dao.TbDeptMapper;
import com.office.personalOffice.contacts.pojo.TbDept;
import com.office.personalOffice.contacts.service.TbDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

/**
 * @Auther: 许月
 * @Date: 2022/11/01/16:42
 */
@Service
public class TbDeptServiceImpl implements TbDeptService {

    @Autowired
    private TbDeptMapper tbDeptMapper;

    /**
     * 获取最高层的部门列表
     * @return
     */
    @Override
    public List<TbDept> getFirstDeptList() {

        return tbDeptMapper.getFirstDeptList();
    }
}
